import 'package:flutter/material.dart';
import './fonts.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('垂直图片'),
        ),
        body: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView(
      padding: const EdgeInsets.fromLTRB(0, 10, 0, 10),
      children: <Widget>[
        Image.network(
          "https://www.singlewindow.cn/fs/STADOCROOT/75/17/D3/7CDEA4175FE89CA2E21091C1E5.png",
          fit: BoxFit.cover,
        ),
        Container(
          padding: const EdgeInsets.fromLTRB(0, 10, 0, 10),
          height: 48,
          child: const Text(
            "我是一个图片标题1",
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 16),
          ),
        ),
        Image.network(
          "https://www.singlewindow.cn/fs/STADOCROOT/00/9A/85/C71E9B339084DF62F7958F76C7.jpg",
          fit: BoxFit.cover,
        ),
        const SizedBox(
          height: 44,
          child: Text(
            "我是一个图片标题2",
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 16),
          ),
        ),
        Image.network(
          "https://www.singlewindow.cn/fs/STADOCROOT/F9/F5/B2/4FB8D48B290DE448E26F37D5D9.png",
          fit: BoxFit.cover,
        ),
        const SizedBox(
          height: 44,
          child: Text(
            "我是一个图片标题3",
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 16),
          ),
        ),
        Image.network(
          "https://www.singlewindow.cn/fs/STADOCROOT/75/17/D3/7CDEA4175FE89CA2E21091C1E5.png",
          fit: BoxFit.cover,
        ),
        const SizedBox(
          height: 44,
          child: Text(
            "我是一个图片标题4",
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 16),
          ),
        ),
        Image.network(
          "https://www.singlewindow.cn/fs/STADOCROOT/00/9A/85/C71E9B339084DF62F7958F76C7.jpg",
          fit: BoxFit.cover,
        ),
        const SizedBox(
          height: 44,
          child: Text(
            "我是一个图片标题5",
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 16),
          ),
        ),
        Image.network(
          "https://www.singlewindow.cn/fs/STADOCROOT/F9/F5/B2/4FB8D48B290DE448E26F37D5D9.png",
          fit: BoxFit.cover,
        ),
        const SizedBox(
          height: 44,
          child: Text(
            "我是一个图片标题6",
            textAlign: TextAlign.center,
            style: TextStyle(fontSize: 16),
          ),
        ),
      ],
    );
  }
}
